const express = require('express');
let router = express.Router();

// a middleware sub-stack shows request info for any type of HTTP request to the /user/:id path
router.use(
    '/',
    function(req, res, next) {
        console.log('Request URL:', req.originalUrl);
        next();
    },
    function(req, res, next) {
        console.log('Request Type:', req.method);
        next();
    }
);
router.all('/', (req, res) => {
    res.render('index.art');
});
module.exports = {
    router: router
};
